package za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Command.Factory;


import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Command.Model.Command;
import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Command.Model.MealInvoker;


public class InvokerFactory 
{
    private static MealInvoker mealInvoker = null;

    public static MealInvoker createInvoker(Command lunchCommand) 
    {
        if(mealInvoker == null)
            mealInvoker = new MealInvoker(lunchCommand);  
        return mealInvoker;
    }   
}